package ru.ifmo.network;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author avhaliullin
 */
public class FiniteInputStreamHolder {
    private final InputStream inputStream;
    private final long size;

    public FiniteInputStreamHolder(InputStream inputStream, long size) {
        this.inputStream = inputStream;
        this.size = size;
    }

    public InputStream getInputStream() {
        return inputStream;
    }

    public long getSize() {
        return size;
    }
}
